package com.test.designPattern.ch27;

/**
 * @ClassName BusinessLookUp
 * @Description TODO
 * @Author 业务查询，根据不同类型 获取不同的业务
 * @Date 2018/7/2 16:34
 * @Version 1.0
 **/
public class BusinessLookUp {
    public BusinessService getBusinessService(String serviceType){
        if(serviceType.equalsIgnoreCase("EJB")){
            return new EJBService();
        }else {
            return new JMSService();
        }
    }
}
